@extends('admin.base.parent')
@section('content')
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">主页</a>
							</li>
							<li>
								<a href="#">用户详情页</a>
							</li>
							<li class="active">修改用户</li>
						</ul><!-- .breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="搜索" class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>

					<div class="page-content">
						<div class="page-header">
							<h1>
								修改用户
								<small>
									<i class="icon-double-angle-right"></i>
									用户详情
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">							
								<!-- PAGE CONTENT BEGINS -->
								<form action="{{ url('admin/users/details/'.$list->id) }}" method="post" class="form-horizontal" role="form" enctype="multipart/form-data">
									{{ csrf_field() }}
									{{ method_field('PUT') }}
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> ID </label>

										<div class="col-sm-9">
											<input readonly="" type="text" class="col-xs-10 col-sm-5" id="form-input-readonly" value="{{ $list->id }}" name="id" />
										</div>
									</div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 头像 </label>
										<div class="col-sm-9">
											<img src="{{ asset('admin/upload').'/'.$list->upic }}" width="150" height="150">
											<br>
											<input type="file" id="form-field-1" value="{{ $list->upic }}" class="col-xs-10 col-sm-5" name="upic" />
										</div>
									</div>								
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 用户名 </label>

										<div class="col-sm-9">
											<input type="text" id="form-field-1" value="{{ $list->username }}" class="col-xs-10 col-sm-5" name="username" />
										</div>
									</div>	

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 性别 </label>

										<div class="col-sm-9">
											<!-- <input type="text" id="form-field-1" value="{{ $list->sex }}" class="col-xs-10 col-sm-5" name="sex" /> -->
											<select name="sex">
												<option value="1" @if($list->sex == 1) selected @endif>男</option>
												<option value="2" @if($list->sex == 2) selected @endif>女</option>
											</select>
										</div>
									</div>	

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 注册时间 </label>

										<div class="col-sm-9">
											<input readonly="" type="text" class="col-xs-10 col-sm-5" id="form-input-readonly" value="{{ date('Y-m-d H:i:s',$list->regtime) }}" />
										</div>
									</div>							

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Email </label>

										<div class="col-sm-4">
											<label class="block clearfix" width="100">
														<span class="block input-icon input-icon-right">
															<input type="email" class="form-control" value="{{ $list->email }}" name="email" required />
															<i class="icon-envelope"></i>
														</span>
											</label>											
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 简介 </label>

										<div class="col-sm-9">
											<textarea id="form-field-11" rows ='5px' cols='45px' name="info">{{ $list->info }}</textarea>
										</div>
									</div>
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="submit">
												<i class="icon-ok bigger-110"></i>
												提交
											</button>

											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset">
												<i class="icon-undo bigger-110"></i>
												重置
											</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
@endsection